package com.config.exception;

/**
 * @author Fang Ruichuan
 * @date 2022-10-09 11:14
 */

public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = -2054835303257668449L;

    private String code = "1";

    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super();
        this.message = message;
    }

    public BusinessException(String code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public BusinessException(String code, String message, Throwable cause) {
        super(cause);
        this.code = code;
        this.message = message;
    }
}
